import request from '@/utils/request'

// 查询院校库列表
export function listSchools(query) {
  return request({
    url: '/system/schools/list',
    method: 'get',
    params: query
  })
}

// 查询院校库详细
export function getSchools(schoolId) {
  return request({
    url: '/system/schools/' + schoolId,
    method: 'get'
  })
}

// 新增院校库
export function addSchools(data) {
  return request({
    url: '/system/schools',
    method: 'post',
    data: data
  })
}

// 修改院校库
export function updateSchools(data) {
  return request({
    url: '/system/schools',
    method: 'put',
    data: data
  })
}

// 删除院校库
export function delSchools(schoolId) {
  return request({
    url: '/system/schools/' + schoolId,
    method: 'delete'
  })
}
